package com.zw.pdm.module.system.service;

import com.zw.pdm.module.system.mapper.IndexMapper;
import com.zw.pdm.util.ShiroUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Author: China.wsg
 * @Date: 2020/10/23 09:11
 */
@Service
@SuppressWarnings("all")
public class IndexService {

    @Autowired
    private IndexMapper indexMapper;


    /**
     * 下达设计任务
     *
     * @return
     */
    public Integer getIssueTaskCount() {
        return indexMapper.getIssueTaskCount();
    }

    /**
     * 产品结构待审核数量
     *
     * @return
     */
    public Integer getCheckProCount() {
        return indexMapper.getCheckProCount();
    }

    /**
     * 产品结构待创建数量
     *
     * @return
     */
    public Integer getSaveProCount() {
        return indexMapper.getSaveProCount();
    }

    /**
     * 外观设计清单审核数量
     *
     * @return
     */
    public Integer getCheckProOutCount() {
        return indexMapper.getCheckProOutCount(ShiroUtils.getUserId());
    }


    /**
     * @Author mayongfeng
     * @Date 12:42 2020/12/8
     * @Description 制作件清单未提交数量
     *
     **/
    public Integer getNotSubmitMakeCount() {
        return indexMapper.getNotSubmitMakeCount(ShiroUtils.getUserId());

    }

    /**
     * @Author mayongfeng
     * @Date 12:42 2020/12/8
     * @Description 制作件清单未审核数量
     *
     **/
    public Integer getNotCheckMakeCount() {
        return indexMapper.getNotCheckMakeCount(ShiroUtils.getUserId());
    }

    /**
     * @Author mayongfeng
     * @Date 12:42 2020/12/8
     * @Description 图纸变更未提交数量
     *
     **/
    public Integer getNotSubmitDrawtCount() {
        return indexMapper.getNotSubmitDrawtCount(ShiroUtils.getUserId());
    }

    /**
     * @Author mayongfeng
     * @Date 12:42 2020/12/8
     * @Description 图纸变更未审核数量
     *
     **/
    public Integer getNotCheckDrawCount() {
        return indexMapper.getNotCheckDrawCount(ShiroUtils.getUserId());
    }

    /**
     * 查询 有多少未接收项
     * @return
     */
    public Integer getReleaseCount() {
        return indexMapper.getReleaseCount();
    }

    /**
     * @Author mayongfeng
     * @Date 12:55 2020/12/21
     * @Description 未提交存档清单数量
     *
     **/
    public Integer getNotSubmitFileCount() {
        return indexMapper.getNotSubmitFileCount(ShiroUtils.getUserId());

    }

    /**
     * @Author mayongfeng
     * @Date 12:55 2020/12/21
     * @Description 未审核存档清单数量
     *
     **/
    public Integer getNotCheckFileCount() {
        return indexMapper.getNotCheckFileCount(ShiroUtils.getUserId());
    }

    /**
     * @Author mayongfeng
     * @Date 12:55 2020/12/21
     * @Description 未下发存档清单数量
     *
     **/
    public Integer getNotLuessFileCount() {
        return indexMapper.getNotLuessFileCount();

    }

    /**
     * @Author mayongfeng
     * @Date 12:55 2020/12/21
     * @Description 未签收存档清单数量
     *
     **/
    public Integer getNotSignFileCount() {
        return indexMapper.getNotSignFileCount();
    }

    /**
     * 未审核提报计划数量
     * @return
     */
    public Integer getNotCheckReportCount() {
        return indexMapper.getNotCheckReportCount(ShiroUtils.getUserId());
    }

    /**
     * 工艺变更提醒未处理数量
     * @return
     */
    public Integer getNotCardChangCount() {
        return indexMapper.getCardChang();
    }

    /**
     * 工艺卡待提交数量
     * @return
     */
    public Integer getNotCreateCodeOne() {
        return indexMapper.getCreateCodeOne(ShiroUtils.getLoginName());
    }
}
